/**
 * Created by Administrator on 2017/5/22.
 */
var mongoose = require('./model');

<<<<<<< HEAD
// 创建模型
=======
>>>>>>> 8714c8b5ba9feaa1406e84e2f3dad3ba2d6fab1d
var mimiSchema = new mongoose.Schema({

});
var mimiInfo = mongoose.model('mimi', mimiSchema);
<<<<<<< HEAD
/*查找文章*/
=======

>>>>>>> 8714c8b5ba9feaa1406e84e2f3dad3ba2d6fab1d
exports.mimi= function (condition,callback) {
    mimiInfo.find(condition,function (err, doc) {
        if (err)
            throw err;
        console.log(doc);
        callback(doc);
    })
};